<?php
namespace ImiApp\Module\Member\Model\Base;

use Imi\Model\Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 老师分享的资料 基类
 * @Entity
 * @Table(name="sc_jigou_teacher_share_data", id={"id"})
 * @DDL("CREATE TABLE `sc_jigou_teacher_share_data` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class_type_id` int(10) DEFAULT NULL COMMENT '课程类型',
  `uid` int(10) DEFAULT NULL COMMENT '老师id',
  `content` text COMMENT '分享内容',
  `images` varchar(1000) DEFAULT NULL COMMENT '分享图片',
  `audio_files` varchar(1000) DEFAULT NULL COMMENT '音频文件',
  `video_files` varchar(1000) DEFAULT NULL COMMENT '视频文件',
  `files` varchar(1000) DEFAULT NULL COMMENT '文件',
  `admin_id` int(10) DEFAULT NULL,
  `time` int(10) DEFAULT NULL COMMENT '发布时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='老师分享的资料'")
 * @property int $id 
 * @property int $classTypeId 课程类型
 * @property int $uid 老师id
 * @property string $content 分享内容
 * @property string $images 分享图片
 * @property string $audioFiles 音频文件
 * @property string $videoFiles 视频文件
 * @property string $files 文件
 * @property int $adminId 
 * @property int $time 发布时间
 */
abstract class ScJigouTeacherShareDataBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * 课程类型
     * class_type_id
     * @Column(name="class_type_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $classTypeId;

    /**
     * 获取 classTypeId - 课程类型
     *
     * @return int
     */ 
    public function getClassTypeId()
    {
        return $this->classTypeId;
    }

    /**
     * 赋值 classTypeId - 课程类型
     * @param int $classTypeId class_type_id
     * @return static
     */ 
    public function setClassTypeId($classTypeId)
    {
        $this->classTypeId = $classTypeId;
        return $this;
    }

    /**
     * 老师id
     * uid
     * @Column(name="uid", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $uid;

    /**
     * 获取 uid - 老师id
     *
     * @return int
     */ 
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * 赋值 uid - 老师id
     * @param int $uid uid
     * @return static
     */ 
    public function setUid($uid)
    {
        $this->uid = $uid;
        return $this;
    }

    /**
     * 分享内容
     * content
     * @Column(name="content", type="text", length=0, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $content;

    /**
     * 获取 content - 分享内容
     *
     * @return string
     */ 
    public function getContent()
    {
        return $this->content;
    }

    /**
     * 赋值 content - 分享内容
     * @param string $content content
     * @return static
     */ 
    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    /**
     * 分享图片
     * images
     * @Column(name="images", type="varchar", length=1000, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $images;

    /**
     * 获取 images - 分享图片
     *
     * @return string
     */ 
    public function getImages()
    {
        return $this->images;
    }

    /**
     * 赋值 images - 分享图片
     * @param string $images images
     * @return static
     */ 
    public function setImages($images)
    {
        $this->images = $images;
        return $this;
    }

    /**
     * 音频文件
     * audio_files
     * @Column(name="audio_files", type="varchar", length=1000, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $audioFiles;

    /**
     * 获取 audioFiles - 音频文件
     *
     * @return string
     */ 
    public function getAudioFiles()
    {
        return $this->audioFiles;
    }

    /**
     * 赋值 audioFiles - 音频文件
     * @param string $audioFiles audio_files
     * @return static
     */ 
    public function setAudioFiles($audioFiles)
    {
        $this->audioFiles = $audioFiles;
        return $this;
    }

    /**
     * 视频文件
     * video_files
     * @Column(name="video_files", type="varchar", length=1000, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $videoFiles;

    /**
     * 获取 videoFiles - 视频文件
     *
     * @return string
     */ 
    public function getVideoFiles()
    {
        return $this->videoFiles;
    }

    /**
     * 赋值 videoFiles - 视频文件
     * @param string $videoFiles video_files
     * @return static
     */ 
    public function setVideoFiles($videoFiles)
    {
        $this->videoFiles = $videoFiles;
        return $this;
    }

    /**
     * 文件
     * files
     * @Column(name="files", type="varchar", length=1000, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $files;

    /**
     * 获取 files - 文件
     *
     * @return string
     */ 
    public function getFiles()
    {
        return $this->files;
    }

    /**
     * 赋值 files - 文件
     * @param string $files files
     * @return static
     */ 
    public function setFiles($files)
    {
        $this->files = $files;
        return $this;
    }

    /**
     * admin_id
     * @Column(name="admin_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $adminId;

    /**
     * 获取 adminId
     *
     * @return int
     */ 
    public function getAdminId()
    {
        return $this->adminId;
    }

    /**
     * 赋值 adminId
     * @param int $adminId admin_id
     * @return static
     */ 
    public function setAdminId($adminId)
    {
        $this->adminId = $adminId;
        return $this;
    }

    /**
     * 发布时间
     * time
     * @Column(name="time", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $time;

    /**
     * 获取 time - 发布时间
     *
     * @return int
     */ 
    public function getTime()
    {
        return $this->time;
    }

    /**
     * 赋值 time - 发布时间
     * @param int $time time
     * @return static
     */ 
    public function setTime($time)
    {
        $this->time = $time;
        return $this;
    }

}
